package com.lucy.property.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "单元房产创建参数")
public class UnitHouseCreateParams {
    @ApiModelProperty("楼栋单元ID")
    String buildingUnitId;


    @NotBlank(message = "房产编码不可为空")
    @ApiModelProperty("房产编码")
    private String houseCode;

    @NotNull
    @ApiModelProperty("所在层")
    Integer floor;

    @Min(0)
    @ApiModelProperty("房产面积")
    Double area;

    @ApiModelProperty("居住人数")
    Integer liveNum = 0;

    @ApiModelProperty("房产状态")
    String houseStatus = "闲置";

    @ApiModelProperty("备注信息")
    String remark;
}
